<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="./lib/vue.js"></script>
</head>
<body>
	<div id="root">
		<button @click="changeStr">更改str</button>
		<input v-model="str" type="text">
		<div v-text="str"></div>
		<div v-html="str"></div>
	</div>
</body>
<script>
	const vm = new Vue({
		el:"#root",
		data:{
			str:"<h3>我现在挺好</h3>"
		},
		methods:{
			changeStr(){
				this.str += "!"
			}
		}
	});
</script>
</html>